﻿<Window x:Class="WGMClient.Controls.PopupWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="PopupWindow"  Width="220" Height="100" Background="Transparent"   ResizeMode="NoResize" ShowInTaskbar="False"  WindowStyle="None" AllowsTransparency="True" Topmost="False" Focusable="False">
    <Border CornerRadius="10"  x:Name="_mainBorder" >
        <Border.Background>
            <RadialGradientBrush GradientOrigin="0.5,0.5" Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5">
                <GradientStop Color="White" Offset="0" />
                <GradientStop Color="GhostWhite" Offset="0.25" />
                <GradientStop Color="WhiteSmoke" Offset="0.75" />
                <GradientStop Color="#FEDEDEDE" Offset="1" />
            </RadialGradientBrush>
        </Border.Background>
        <Grid x:Name="_rootGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="15" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="22" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Image Margin="5,0,0,0" HorizontalAlignment="Left" Width="20" Height="20"  Stretch="UniformToFill" Source="..\Images\blank.png"></Image>
            <TextBlock VerticalAlignment="Top" Foreground="Black" Name="_title"  Margin="25,0,0,0" FontFamily="Verdana"  FontSize="12" Text="New Global Message" Grid.ColumnSpan="2" />
            <TextBlock Foreground="Red" Name="_closeButton" Text="X" Cursor="Hand"  Width="15" Height="15" HorizontalAlignment="Right" TextAlignment="Center" FontFamily="Verdana" FontWeight="Bold" MouseDown="TextBlock_MouseDown" Background="Transparent" Grid.Column="2"/>
            <TextBlock VerticalAlignment="Top" Foreground="Black" Margin="10,0,0,0" MouseDown="Window_MouseDown" Name="_messageBody" Grid.Row="1" Cursor="Hand" Background="Transparent"   FontFamily="Verdana"  FontSize="10" Text="This is a test message"  TextWrapping="Wrap" TextTrimming="CharacterEllipsis"  />
            <ContentPresenter Grid.Column="1" MouseDown="Window_MouseDown" Grid.RowSpan="2" VerticalAlignment="Top" Cursor="Hand" Margin="0,22,0,0" Grid.Row="0" Height="45" Width="45" Name="_imageContent"/>
        </Grid>
    </Border>
</Window>
